package com.dems.domain;

import com.dems.core.util.DataFactory;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class UserVO {

    private String userId;

    private String name;

    private String phoneNo;

    private String inviteName;

    private String headimgUrl;

    private Date createTime;

    private String openId;

    private String userType;

    private String sipAccount;

    private String sipPassword;

    private String number;

    private Long gid;

    private String companyId;

    private String companyName;

    private Integer buId;

    private String creditAccount;

    private List<String> roleCodeList;

    private List<String> menuCodeList;

    /**
     * 0-正常
     * -1 离职
     */
    private Integer status;


    /**
     * 手机号
     *
     * @return
     */
    public String getPhoneNo() {
        return DataFactory.toConceal(phoneNo);
    }
}
